import type { IPropChild } from "@/utils/types";
import { useGetUser, connect } from "@/hooks/userHooks";
import { Spin } from "antd";

/**
 * 获取用户信息
 */
const UserInfo = connect(({ children }: IPropChild) => {
  // const {store,setStore} = useUserContext()
  // const [state,setState] = useState()
  const { loading } = useGetUser();
  return (
    <Spin spinning={loading}>
      <div style={{ height: "100vh" }}>{children}</div>
    </Spin>
  );
}
)

export default UserInfo; //注意比较两个区别
// export default UserInfo
